@PACKAGE_INIT@

include("@CMAKE_INSTALL_PREFIX@/lib/cmake/AtomSpace/AtomSpaceTargets.cmake")

# Execution depends on atomspace and atomspace depends on execution,
# but circular dependencies are forbidden by cmake, so dependancy
# on execution is omitted in atomspace at build time. It should be set
# here for proper linking.
set_property(TARGET execution
	APPEND PROPERTY INTERFACE_LINK_LIBRARIES
	atomspace
)

set_property(TARGET query-engine
	APPEND PROPERTY INTERFACE_LINK_LIBRARIES
	pattern
	atomspace
)

set_property(TARGET atom_types
	APPEND PROPERTY INTERFACE_LINK_LIBRARIES
	atombase
)

# These names are used in various projects e.g. opencog, as-moses, etc.
# XXX FIXME ... they probably should not be! It would be best if the all
# of the libs were specified i.e. LINK_LIBRARIES(${ATOMSPACE_LIBRARIES})
set(ATOMSPACE_LIBRARY atomspace)
set(ATOMSPACE_atombase_LIBRARY atombase)
set(ATOMSPACE_atomcore_LIBRARY atomcore)
set(ATOMSPACE_atomflow_LIBRARY atomflow)
set(ATOMSPACE_atomproto_LIBRARY value)
set(ATOMSPACE_atomspace_LIBRARY atomspace)
set(ATOMSPACE_atomtypes_LIBRARY atom_types)
set(ATOMSPACE_clearbox_LIBRARY clearbox)
set(ATOMSPACE_execution_LIBRARY execution)
set(ATOMSPACE_grounded_LIBRARY grounded)
set(ATOMSPACE_join_LIBRARY join)
set(ATOMSPACE_pattern_LIBRARY pattern)
set(ATOMSPACE_scope_LIBRARY scope)
set(ATOMSPACE_smob_LIBRARY smob)
set(ATOMSPACE_value_LIBRARY value)

# XXX why are these listed in reverse dependency order?
# Doesn't the linker care about this?
set(ATOMSPACE_LIBRARIES
	atom_types
	value
	atombase
	atomcore
	atomflow
	columnvec
	clearbox
	scope
	join
	pattern
	query-engine
	execution
	framestack
	grounded
	grant
	signature
	smob
	atomspace
)

# Python is optional
IF (HAVE_CYTHON)
	set(ATOMSPACE_PythonEval_LIBRARY PythonEval)
	SET(ATOMSPACE_LIBRARIES
	    ${ATOMSPACE_LIBRARIES}
	    ${ATOMSPACE_PythonEval_LIBRARY}
	)
ENDIF (HAVE_CYTHON)

set(ATOMSPACE_DATA_DIR "@CMAKE_INSTALL_PREFIX@/share/opencog")
set(ATOMSPACE_INCLUDE_DIR "@CMAKE_INSTALL_PREFIX@/include/")
set(ATOMSPACE_VERSION "@SEMANTIC_VERSION@")
set(ATOMSPACE_FOUND 1)
